package ooday05;

/** static的演示 */
public class StaticDemo {
    public static void main(String[] args) {
        StaticVar var = new StaticVar();
        var.show();
        StaticVar var1 = new StaticVar();
        var1.show();
        StaticVar var2 = new StaticVar();
        var2.show();
        System.out.println(StaticVar.b); //常常通过类名点来访问


        StaticBlock block = new StaticBlock();
        StaticBlock block1 = new StaticBlock();
        StaticBlock block2 = new StaticBlock();

    }
}
